/**
 * Created with CLion.
 * Description: 锦囊类
 * User: loong
 * Date: 2020-05-01
 * Time: 11:00
 */
#ifndef GOFSTUDY_CONTEXT_H
#define GOFSTUDY_CONTEXT_H

#include <iostream>
#include "IStrategy.h"
using namespace std;

class Context{
private:
    IStrategy *strategy;
public:
    Context(IStrategy *strategy) : strategy(strategy){};

    void operate(){
        strategy->operate();
    }
};


#endif //GOFSTUDY_CONTEXT_H
